/*
 * @Date: 2023-02-27 19:53:05
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-08 15:21:42
 * @FilePath: \A19\backend\src\shared\protocols\Get\PtlGetQuestions.ts
 */
import { questions } from "../../types/Question";
import { BaseRequest, BaseResponse, BaseConf } from "../base";

export interface ReqGetQuestions extends BaseRequest {
    type?: "选择题" | "填空题" | "简答题" | "判断题",
    keyword?:string
}

export interface ResGetQuestions extends BaseResponse {
    questions:Array<questions>
}

export const conf: BaseConf = {
    needRole: "teacher",
    needLogin: true 
}